package lab02.test29;

public class Test29 {
    public static void main(String[] args) {
        int []arr=new int[3];
        arr[0]=1;
        arr[1]=2;
        arr[2]=3;

        try{
            System.out.println(arr[3]);
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("数组下标越界");
        }finally {
            System.out.println("最终都会执行的代码");
        }

    }
}
